package ${packageName}.config;

import com.baomidou.mybatisplus.annotation.DbType;
import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor;
import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
* MyBatis-Plus 配置类（分页插件等）
* @author ${author}
* @date ${date?string("yyyy-MM-dd")}
*/
@Configuration
public class MyBatisPlusConfig {

/**
* 分页插件（支持 MySQL、Oracle、PostgreSQL 等）
*/
@Bean
public MybatisPlusInterceptor mybatisPlusInterceptor() {

    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }

}